package com.sea.demo.shiro.mapper;

import com.sea.demo.shiro.domain.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Set;

/**
 * @Author: 快乐在角落里
 * @Create: 2020/11/7 23:38
 */
@Repository
public interface UserMapper {

    int insert(User user);

    int delete(Integer id);

    int update(User user);

    List<User> select(User user);

    User selectOne(Integer id);

    User selectUserByUsername(@Param("username") String username);

    Set<String> selectRoleCodeSet(Integer id);

    Set<String> selectPermissionCodeSet(Integer id);

}
